# -*-conding:utf-8-*-

"""

 Created by feiwo at 2018/7/29
 
"""

__author__ = 'feiwo'

from flask import Blueprint
from app.backend import ROOT_PATH


class BackendBP:
    backend = None

    @classmethod
    def instance(cls):
        if cls.backend is None:
            cls.backend = Blueprint('backend', __name__, template_folder='templates',
                                    static_folder='static',
                                    url_prefix=ROOT_PATH)
        return cls.backend
